using System;
using System.Collections.Generic;
using System.Text;

namespace Acms.Bll
{
    public partial class PageCollection
    {
        public PageCollection(System.Collections.Hashtable[] data, Page parent)
            : base(data)
        {
            _parent = parent;
        }

        private Page _parent;
        public Page Parent
        {
            get
            {
                return _parent;
            }
        }

        public static PageCollection GetByParent(Page parent)
        {
            Acms.DalInterface.IPage dal = Acms.DalFactory.Page.CreateInstance();
            return new PageCollection(dal.GetByParentId(parent.Id), parent);
        }
    }
}
